package com.zlsy.springbootdemo.abstractclass;

import org.springframework.stereotype.Service;

/**
 * @author zhouliang
 * @date 2021/1/22 10:56
 */
@Service
public class MyService extends BaseService {

  private Dao dao;

  public MyService(Dao dao) {
    this.dao = dao;
    super.dao = this.dao;
  }

  @Override
  public void test() {
    dao.process();

    dao1.test();
  }
}
